package org.foreverframework.osgi.service;


public class ManagerService implements Runnable{

	private UserService userService;
	private PrisonService prisonService;
	public void run() {
		while(true){
			System.out.println(userService);
			System.out.println(prisonService);
			try {
				Thread.sleep(10*1000);
			} catch (InterruptedException e) {				
				e.printStackTrace();
			}
		}
		
	}
	public void start(){
		new Thread(this).start();
	}
	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public PrisonService getPrisonService() {
		return prisonService;
	}

	public void setPrisonService(PrisonService prisonService) {
		this.prisonService = prisonService;
	}
	
}
